import matplotlib.pyplot as plt

data = {"a": 100, "b": 200, "c":30, "d":70, "e":10}

# 提取路径和目录大小
paths = list(data.keys())
sizes = list(data.values())

# 绘制曲线图
plt.plot(paths, sizes)

# 添加标题和标签
plt.title('Directory Sizes')
plt.xlabel('Path')
plt.ylabel('Size')

# 旋转x轴标签，以避免重叠
# plt.xticks(rotation=45)

# 显示图形
plt.show()
